﻿<%@ Page Title="홈 페이지" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="SH.LMS.Web.UI._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<!-- 공통 CSS -->
    <link href="<%=ResolveUrl("~/Styles/Default.css") %>" rel="stylesheet" type="text/css" />
    <link href="<%=ResolveUrl("~/Styles/Dev.css") %>" rel="stylesheet" type="text/css" />
    <!-- JQuery CSS -->
    <link href="<%=ResolveUrl("~/Styles/jquery-ui-1.9.2.custom.css") %>" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.jqGrid-4.4.4/js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#jqgrid").jqGrid({
                url: '/Handler/CommonHandler.ashx',
                datatype: 'json',
                data: {
                    method: 'getdata',
                    args: {
                    },
                    returnType: 'json'
                },
                mtype: 'GET',
                colNames: ['Inv No', 'Date', 'Amount'],
                colModel: [
                  { name: 'id', index: 'id', width: 55 },
                  { name: 'title', index: 'title', width: 90 },
                  { name: 'content', index: 'content', width: 80, align: 'right' }
                ],
                rowNum: 10,
                rowList: [10, 20, 30],
                sortname: 'id',
                sortorder: 'desc',
                viewrecords: true,
                gridview: true,
                caption: 'My first grid'
            }); 

        })
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        ASP.NET 시작
    </h2>
    <p>
        ASP.NET에 대한 자세한 내용을 보려면 <a href="http://www.asp.net" title="ASP.NET 웹 사이트">www.asp.net</a>을 방문하십시오.
        http://localhost/Manager/Index.aspx
    </p>
    <p>
        <a href="http://go.microsoft.com/fwlink/?LinkID=152368"
            title="MSDN ASP.NET 문서">MSDN에서 ASP.NET 설명서</a>를 확인할 수도 있습니다.
    </p>
    <table id="jqgrid"></table>
</asp:Content>
